	
/****** Object:  Stored Procedure AdjustQuantityInsert    Script Date: Wednesday, October 24, 2007 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spAdjustQuantityInsert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [spAdjustQuantityInsert]
GO

	
	

/******************************************************************************
**		File: 
**		Name: spAdjustQuantityInsert
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 10/24/2007 8:04:06 PM
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE spAdjustQuantityInsert
	@Amount int,
	@AdjustedDate datetime,
	@Comment nvarchar(500),
	@BulkOrderID int,
	@AdjustedByUserID int,
	@POID int,
	@AdjustQuantityID int output
AS

INSERT INTO [AdjustQuantity] 
(
	[Amount],
	[AdjustedDate],
	[Comment],
	[BulkOrderID],
	[AdjustedByUserID],
	[POID]
) 
VALUES 
(
	@Amount,
	@AdjustedDate,
	@Comment,
	@BulkOrderID,
	@AdjustedByUserID,
	@POID
)

SELECT @AdjustQuantityID = @@IDENTITY

GO
	
